import BaseButton from "./BaseButton";
/**
 * 
 * @author clong 2020.11.01
 */
export default class ListItem extends BaseButton {

    protected _index:number = 0;
    
    constructor() {
    
        super();
    }

    /**
     * 设置渲染条目的索引
     * @param index 
     */
    public setIndex( index:number ):void{

        this._index = index;

        console.log("----->index: " + index );
	}
	
	public get index():number{

		return this._index;
	}

    initUI():void{

        super.initUI();
    }

    show( data:any ):void{
        super.show( data );
    }

    hide():void{

        super.hide();
    }
}